package com.zide.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zide.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * @author 石添
 * @date 2024/2/26 17:29
 */
@Data
@TableName("ums_member")
public class UmsMember extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    @Schema(description = "公司id")
    private Long companyId;
    @Schema(description = "邀请人id")
    private Long parentId;
    @Schema(description = "等级")
    private Integer level;
    @Schema(description = "昵称")
    private String nickname;
    @Schema(description = "账号")
    private String account;
    @Schema(description = "账号")
    private String email;
    @Schema(description = "openid")
    private String openid;
    @Schema(description = "手机号")
    private String mobile;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "性别")
    private Integer sex;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "邀请码")
    private String shareImg;
    @Schema(description = "等级")
    private LocalDateTime loginDate;
    @Schema(description = "状态")
    private Integer status;

    @TableLogic
    private Integer deleted;

}
